adminPanel.controller("StudentProfileController",['cacheFactory','$http','$scope','$q','$filter',function(cacheFactory,$http,$scope,$q,$filter){
	$scope.time=(new Date()).getTime();
	var thisObject=this;
	//update with the student record
	this.updateStudentRecord=function(stProfile,userDashboard){

	}
	//called after file attached by user.
	this.handleAttachImage=function(data,extraInfo){
		if(data.status=='SUCCESS'){
			extraInfo.photoId=data.result[0].id;
			$scope.time=(new Date()).getTime();
		}else{
			ERROR_LOGGER(data);
		}
		$('#myModal').modal('toggle');
	}
}]);